package com.jell.purchase.model;

import java.io.Serializable;

/**
 * 平台公共大字段表
 * p_system_text
 */
public class SystemTextDo implements Serializable {
    /**
     * ID
     * p_system_text.id
     */
    private Integer id;

    /**
     * 所属对象
     * p_system_text.object_id
     */
    private Integer objectId;

    /**
     * 对象类型 message 消息模板
     * p_system_text.object_type
     */
    private String objectType;

    /**
     * 状态
     * p_system_text.sts
     */
    private String sts;

    /**
     * 详细信息
     * p_system_text.detail
     */
    private String detail;

    /**
     * p_system_text
     */
    private static final long serialVersionUID = 1L;

    /**
     * p_system_text.id
     * @return the value of p_system_text.id
     */
    public Integer getId() {
        return id;
    }

    /**
     * p_system_text.id
     * @param id the value for p_system_text.id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * p_system_text.object_id
     * @return the value of p_system_text.object_id
     */
    public Integer getObjectId() {
        return objectId;
    }

    /**
     * p_system_text.object_id
     * @param objectId the value for p_system_text.object_id
     */
    public void setObjectId(Integer objectId) {
        this.objectId = objectId;
    }

    /**
     * p_system_text.object_type
     * @return the value of p_system_text.object_type
     */
    public String getObjectType() {
        return objectType;
    }

    /**
     * p_system_text.object_type
     * @param objectType the value for p_system_text.object_type
     */
    public void setObjectType(String objectType) {
        this.objectType = objectType == null ? null : objectType.trim();
    }

    /**
     * p_system_text.sts
     * @return the value of p_system_text.sts
     */
    public String getSts() {
        return sts;
    }

    /**
     * p_system_text.sts
     * @param sts the value for p_system_text.sts
     */
    public void setSts(String sts) {
        this.sts = sts == null ? null : sts.trim();
    }

    /**
     * p_system_text.detail
     * @return the value of p_system_text.detail
     */
    public String getDetail() {
        return detail;
    }

    /**
     * p_system_text.detail
     * @param detail the value for p_system_text.detail
     */
    public void setDetail(String detail) {
        this.detail = detail == null ? null : detail.trim();
    }

    /**
     * p_system_text
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SystemTextDo other = (SystemTextDo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getObjectId() == null ? other.getObjectId() == null : this.getObjectId().equals(other.getObjectId()))
            && (this.getObjectType() == null ? other.getObjectType() == null : this.getObjectType().equals(other.getObjectType()))
            && (this.getSts() == null ? other.getSts() == null : this.getSts().equals(other.getSts()))
            && (this.getDetail() == null ? other.getDetail() == null : this.getDetail().equals(other.getDetail()));
    }

    /**
     * p_system_text
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getObjectId() == null) ? 0 : getObjectId().hashCode());
        result = prime * result + ((getObjectType() == null) ? 0 : getObjectType().hashCode());
        result = prime * result + ((getSts() == null) ? 0 : getSts().hashCode());
        result = prime * result + ((getDetail() == null) ? 0 : getDetail().hashCode());
        return result;
    }
}